﻿using Entity.Enum;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity.CheckInEntity
{
    public class Appointment : BaseEntity
    {
        /// <summary>
        /// 房间Id
        /// </summary>
        [Column(TypeName = "varchar(36)")]
        public string RoomId { get; set; }
        /// <summary>
        /// 预约订单状态
        /// </summary>
        public AppointmentStatusEnum Status { get; set; }
        /// <summary>
        /// 操作人
        /// </summary>
        [Column(TypeName = "varchar(36)")]
        public string Creator { get; set; }
        /// <summary>
        /// 入住日期
        /// </summary>
        public DateTime CheckInDate { get; set; }
        /// <summary>
        /// 退房日期
        /// </summary>
        public DateTime CheckOutDate { get; set; }
        /// <summary>
        /// 入住天数
        /// </summary>
        public int CheckInDay { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>
        [Column(TypeName = "Money")]
        public decimal Amount { get; set; }
        /// <summary>
        /// 酒店/客户取消理由
        /// </summary>
        [Column(TypeName = "varchar(64)")]
        public string Reason { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        [Column(TypeName = "varchar(36)")]
        public string UserId { get; set; }
    }
}
